package com.sc.nft.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sc.nft.enums.CommodityType;
import com.sc.nft.sup.SuperEntity;
import java.util.Date;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 库存明细表(sc_product_stock_detail)实体类
 *
 * @author zxy
 * @since 2022-06-03 01:43:54
 * @description 由 Mybatisplus Code Generator 创建
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("sc_product_stock_detail")
public class ProductStockDetail extends SuperEntity implements Serializable {
    private static final long serialVersionUID = 1L;


    /**
     * 明细类型1、订单 2、积分 
     */
    private CommodityType type;
    /**
     * 商品Id
     */
    private Long productId;
    /**
     * 商品Id
     */
    private Long relationId;
    /**
     * 商品Id
     */
    private Long itemId;
    /**
     * 库存变动
     */
    private Integer stockChange;
    /**
     * 用户Id
     */
    private Long userId;


}